package br.ucb.dao;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

import br.ucb.connection.FactoryConnection;

public class AcessoDAO {

	public static void addAcesso(String cpf, String senha) throws SQLException, ClassNotFoundException {
		Connection con = FactoryConnection.getInstance().criaConexao();
		String SQL_INSERT = "INSERT INTO daoAcesso VALUES(?,?)";
		PreparedStatement instrucao = con.prepareStatement(SQL_INSERT);
		instrucao.setString(1, cpf);
		instrucao.setString(2, senha);
		int retorno = instrucao.executeUpdate();
		instrucao.close();
		con.close();
		
	}

}
